import Vue from 'vue';
import Vuex from 'vuex';
import i18n from '@/i18n/i18n.js';

import actions from './actions';
import getters from './getters';
import mutations from './mutations';

Vue.use(Vuex);
Vue.use(i18n);

export default new Vuex.Store({
  state: {
    teachingArea: [],
    connectTypes: [],
    equipmentTypes: [],
    userInfo: {},
    lang:localStorage.lang || 'cn'
  },
  actions,
  getters,
  mutations,
});
